package com.student.db;


import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import java.util.List;

import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Single;

@Dao
public interface FixReportDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    public Completable insert(FixReportEntity fixReportEntity);



    @Query("SELECT * FROM db_fix_report  ORDER BY submitTime DESC")
    public Flowable<List<FixReportEntity>> getFixReports();




}
